// const app = getApp();
Component({
  mixins: [],
  data: {},
  props: {},
  didMount() {
    this.globalData={}
    this.globalData.innerAudioContext = my.createInnerAudioContext()
    this.globalData.innerAudioContext.autoplay = true
    this.globalData.innerAudioContext.src = 'http://download.taobaocdn.com/freedom/90053/media/Animal.mp3'
  },
  didUpdate() {},
  didUnmount() {},
  methods: {
    stop(){
      console.log('暂停了',this.globalData)

      this.globalData.innerAudioContext.pause(()=>{
      })
    },

    go(){
      console.log('播放了',this.globalData)
      this.globalData.innerAudioContext.play(()=>{
      })
    },
  },
});
